package judesart.app.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public final class RegExp {
	
	private RegExp(){}

	public final static String matchGroup(String value, String regexp){
		Pattern pt = Pattern.compile(regexp);
		Matcher matcher = pt.matcher(value);
		if(matcher.matches()){
			return matcher.group(1);
		} else {
			return null;
		}
	}
}
